home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 316 / libsrc / ferror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-20  |  156 b   |  14 lines

  1.  
  2. /* return last error */
  3.  
  4. #include "std-guts.h"
  5.  
  6. int ferror(f)
  7. struct file * f;
  8. {
  9.   if (f)
  10.     return(f->last_file_error);
  11.     else
  12.     return(0);
  13. }
  14.